package com.xjy.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Order {
    private String oid;
    private int uid;
    private String pid;
    private int num;
    private double value;
    private Date createDate;
    private Date startDate;
    private int status;
    /*0->待付款；1->待审核；2->未开始；3->未完成；4->未评论；5->已完成；6->无效订单。*/

    public Order(){}

    public Order(String oid, int uid, String pid, int num, double value, Date createDate, Date startDate, int status) {
        this.oid = oid;
        this.uid = uid;
        this.pid = pid;
        this.num = num;
        this.value = value;
        this.createDate = createDate;
        this.startDate = startDate;
        this.status = status;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Order{" +
                "oid='" + oid + '\'' +
                ", uid=" + uid +
                ", pid='" + pid + '\'' +
                ", num=" + num +
                ", value=" + value +
                ", createDate=" + createDate +
                ", startDate=" + startDate +
                ", status=" + status +
                '}';
    }
}
